<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EditPreferences.aspx.cs" Inherits="FriendsNearby.Fbml.EditPreferences" %>
<fb:FacebookApplication ID="fbApplication" runat="server" Mode="Fbml"
    EnableExternalBrowsing="true"
    ApplicationName="FriendsNearby" />
<fb:fbml version="1.0">
<fb:header decoration="add_border">Contacts Nearby</fb:header>    
<div style="float:left;padding:10px;">

    <a style="font-weight:bold" href="<%=FriendsNearby.ConfigHelper.FacebookUrl%>Default.aspx">My Contacts Nearby</a>
    &nbsp;|&nbsp;
    <b>Edit Preferences</b>
    &nbsp;|&nbsp;
    <a style="font-weight:bold" href="<%=FriendsNearby.ConfigHelper.FacebookUrl%>Faq.aspx#how_this_information_is_used">How is this information used?</a>    
    &nbsp;|&nbsp;
    <a style="font-weight:bold" href="http://instedd.org/contactsnearby" target="_blank">About InSTEDD</a>    
    
    
<fb:Success ID="statusMessage" runat="server" />
<fb:Success ID="twitterServiceMessage">
<fb:message><%=TwitterFollowMessage%></fb:message>
</fb:Success>
<fb:error>
    <fb:message><%=NearbyRadiusKMInvalidMessage%></fb:message>
</fb:error>
<fb:editor action="EditPreferences.aspx">
    <fb:editor-custom >
        <label>1. My name and location are visible to:</label>
    </fb:editor-custom>
    <fb:editor-custom>
        <select name="visibility">
            <%= RenderVisibilityComboItems %>
        </select>
    <fb:editor-custom >
        <label>2. I consider someone to be nearby, when the distance in kilometers is less than:</label>
    </fb:editor-custom>
    </fb:editor-custom>
        <fb:editor-custom>
        <input name="radius_km" value="<%= NearbyRadiusKM %>"/>
    </fb:editor-custom>
    
    <fb:editor-custom >
        <label>3. I have a Twitter account over which I would like to receive updates on new contacts entering my nearby area.</label>
        <label>My Twitter account name is:</label>
    </fb:editor-custom>
    </fb:editor-custom>
        <fb:editor-custom>
        <input name="twitter_acc" value="<%= TwitterAccountName %>"/>Leave blank if you would not like to receive updates or dont have a twitter account.
    </fb:editor-custom>
    
    <fb:editor-buttonset>
        <fb:EditorButton ID="saveButton" Value="Save" runat="server"/>
        <fb:editor-cancel href="<%=FriendsNearby.ConfigHelper.FacebookUrl%>Default.aspx" />
</fb:editor>
</div>
</fb:fbml>
